package zy;

public class Car {
	String name;
	String is;

	public static void main(String[] args) {
		Car motorcycle = new Car();
		motorcycle.name = "摩托车";
		motorcycle.is = "是短途的交通工具";
		motorcycle.drive();

		Car hand_tractor = new Car();
		hand_tractor.name = "手扶拖拉机";
		hand_tractor.is = "是农耕的工具";
		hand_tractor.drive();

		Car compact_car = new Car();
		compact_car.name = "小型汽车";
		compact_car.is = "是长途的交通工具";
		compact_car.drive();
	}

	public void drive() {
		System.out.println("车辆特性：");
		System.out.println(name + is);
	}
}


